package com.ojoin.ojoin.eb_spider.service;

import java.util.List;

import org.dom4j.DocumentException;
import org.springframework.stereotype.Service;

import com.ojoin.ojoin.eb_spider.domain.AlipayAccount;
import com.ojoin.trade.supplyloan_core.web.domain.TbSlPlatformUser;


/**
 * 
 * 
 * @author zwc
 * 
 */
@Service
public interface AlipayAccountService {
	
	public List<AlipayAccount> getAlipayAccounts(TbSlPlatformUser user) throws DocumentException, Exception ;
	

	/**
	 * 判断是否需要发送邮件
	 * @param lists
	 * @return
	 */
	public boolean needSend(List<AlipayAccount> lists);
	
	/**
	 * 封装发送邮件的格式
	 * @param lists
	 * @return
	 */
	
	public boolean initSendMailStyle(List<AlipayAccount> lists);
	
	/**
	 * 获取可销总金额
	 * 
	 * @return
	 */
	public Float getCanSell(AlipayAccount alipayAccount);
	
}
